// Test.LibUtils.cpp : Defines the entry point for the console application.
//
//#define  _WINDOWS
#include "stdafx.h"
#include "uRandom.h"
#include "ustringutils.h"
#include "unetutils.h"
#include "stdio.h"
#include "stdlib.h"
#include "UDll.h"
#include "tconfigsetting.h"
#include <vector>
#include <string>
#include "ustringutils.h"
#include "usystemutils.h"

using namespace std;
USING_LIBSPACE





void test1()
{
	tstrings res;

	tstring data = _T("fdfadfasdfasdfasdf");
	tstring m = _T("as");

	USOpeUtils::Split(&res, data, m);


}
void test2()
{
	TConfigSetting cfg;
	cfg.LoadConfig("");
}
#include <winsock2.h>
#include <ws2tcpip.h>
#pragma comment(lib,"Ws2_32.lib")


extern void test3();
int _tmain(int argc, _TCHAR* argv[])
{
	//std::string GetProcessorSeial(bool withSeparator);
	//std::string ret =GetProcessorSeial(false);

	std::string x = USystemUtils::GetHDID();


	test1();

	WSADATA wsaData;
	std::string m = "asdfas";
	const char* pp = m.c_str();
	printf("%s",pp);

	int iResult = WSAStartup(MAKEWORD(2, 2), &wsaData);


	tstring name = UNetUtils::GetHostName();


	tstring addr  = UNetUtils::GetMacAddress();//::GetLocalMac();
	tstrings ipaddress  = UNetUtils::GetIpAddress(_T("tigera"));
	for (int i=0; i<ipaddress.size() ; ++i)
	{

	}
	/*std::vector<std::string> v;
	UDll::GetDllAllExportFunc(_T("C:\\Users\\chenhu\\Documents\\MATLAB\\MyTestDllRun\\distrib\\MyTestDllRun.dll"),&v);
	for (int i=0; i<v.size(); ++i)
	{
	printf(v[i].c_str());
	}

	test3();

	system("pause");*/
	return 0;
}

